<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style></style>
</head>

<body>
    <h2>自定义实现vue原理</h2>
    <div id="app">
        <h2>{{person.name}} -- {{person.age}}</h2>
        <h3>{{person.fav}}</h3>
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>
        <h3>{{msg}}</h3>
        <div v-text='msg'></div>
        <input type="text" v-model='msg'>
    </div>
    <script>
        let vm = new MVue({
            el: '#app',
            data: {
                person: {
                    name: '小马哥',
                    age: 12,
                    fav: 'guliang'
                },
                msg: 'sdfdsf'
            }
        })
    </script>
    <script>
        var arr = [12, 34, 6, 235]
        var a = arr.forEach(item => {
            return item + 1
        })
        console.log(arr);
        console.log(a);
    </script>
</body>

</html>